package cn.starrysky108.simpleerp.article.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 文章
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("article")
@ApiModel(value = "Article对象", description = "文章")
public class Article extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "文章链接")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "作者id")
    @TableField("author")
    private Long author;

    @ApiModelProperty(value = "文章类别")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "文章展示图")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "摘要")
    @TableField("summary")
    private String summary;

    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "标签(多个标签使用;分隔开)")
    @TableField("tags")
    private String tags;

    @ApiModelProperty(value = "文章所有文件列表")
    @TableField("files")
    private String files;

    @ApiModelProperty(value = "文章附件")
    @TableField("accessories")
    private String accessories;

    @ApiModelProperty(value = "浏览次数")
    @TableField("visit")
    private Integer visit;


}
